// pages/gs/book_library/book_library.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    loading:true,
    windowWidth:wx.getSystemInfoSync().windowWidth,
    lis:[
      {cover:'https://img2.baidu.com/it/u=4059932717,1235852603&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',url:'https://yqwl.top/documents/DJI_Ground_Station_v3.04.pdf',title:'大疆创新科技地面站大疆创新科技地面站大疆创新科技地面站'},
      {cover:'https://img2.baidu.com/it/u=4059932717,1235852603&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',url:'https://yqwl.top/documents/DJI_Ground_Station_v3.04.pdf',title:'大疆创新科技地面站'},
      {cover:'https://img2.baidu.com/it/u=4059932717,1235852603&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',url:'https://yqwl.top/documents/DJI_Ground_Station_v3.04.pdf',title:'大疆创新科技地面站'},
      {cover:'https://img2.baidu.com/it/u=4059932717,1235852603&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',url:'https://yqwl.top/documents/DJI_Ground_Station_v3.04.pdf',title:'大疆创新科技地面站'},
      {cover:'https://img2.baidu.com/it/u=4059932717,1235852603&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',url:'https://yqwl.top/documents/DJI_Ground_Station_v3.04.pdf',title:'大疆创新科技地面站'},
      {cover:'https://img2.baidu.com/it/u=4059932717,1235852603&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',url:'https://yqwl.top/documents/DJI_Ground_Station_v3.04.pdf',title:'大疆创新科技地面站'},
    ]
  },

  tap_item(e){
    let index = e.currentTarget.id
    wx.navigateTo({
      url: '/pages/book/book_show/book_show?url=' + this.data.lis[index].url,
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    setTimeout(() => {
      this.setData({
        loading:false
      })
    }, 1000);
    let ti_type = '三角形'
    wx.setNavigationBarTitle({
      title: '我享飞：' + ti_type
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})